@import "header.html"
<link rel="stylesheet" href="../css/chat.css">
<body>
<header class="fxj-header">
    <back></back>
    <h1 class="fxj-title">聊天</h1>
</header>
<main id="main">
    <section v-for="chat of chatList">
        <p class="time">{{chat.date}}</p>
        <div class="msg-container" :class="{other:chat.who==='other',own:chat.who==='me'}">
            <div class="msg-box msg-box-left" v-if="chat.who==='me'" v-cloak>{{chat.msg}}</div>
            <div class="img-container"><img class="avatar border" :src="chat.head" @load="removeBorder($event)"></div>
            <div class="msg-box msg-box-right" v-if="chat.who==='other'" v-cloak>{{chat.msg}}</div>
        </div>
    </section>

</main>


@import "js.html"
<script src="../script/chat.js"></script>
</body>
@import "footer.html"